<template>
  <view :style="themeColor">
    <view class="page">
      <fu-custom bgColor="bg-white" :isBack="true" :isBottom="true">
        <block slot="content">分类</block>
      </fu-custom>
      <benben-goods-classify class='flex  classification_flex_classify_1' :top='88' threeLevel='false'
        :handle-id.sync='click_aid' :lists='dataList' @refresh="queryListFunc()" @handle-item="jumpFunc(click_aid)">
      </benben-goods-classify>


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "dataList": [],
        "click_aid": "",
        "keyword": ""
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //商品管理-获取推荐商品分类
      async queryListFunc() {
        //请求方法
        //数据验证

        let datadataList = await this.$api.get(global.apiUrls.post63e369d925758, {

        });

        if (datadataList.data.code != 1) {
          this.$message.info(datadataList.data.msg);
          return
        }
        let infodataList = datadataList.data;
        this.dataList = infodataList.data

      },
      //跳转
      jumpFunc(id) {
        this.$urouter.navigateTo(
          `/pages/sy/tuijianshangjia/tuijianshangjia?keyword=${this.keyword}&cid=${this.click_aid}`);
      },
      //搜索
      keywordFunc(id) {
        this.$urouter.navigateTo(
          `/pages/sy/tuijianshangjia/tuijianshangjia?keyword=${this.keyword}&cid=${this.click_aid}`);
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .classification_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .classification_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333;
    line-height: 88rpx;
  }

  .classification_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .classification_fd0_0_c0 {
    width: 120rpx;
  }

  .classification_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  ::v-deep .classification_flex_classify_1 {
    --classify-radius: 16rpx;
    --active-tag-color: var(--benbenbgColor7);
  }
</style>